package uicgas.register.remotecmds;

import uicgas.communication.RemoteCommand;
import uicgas.globaldata.MessagePayload;
import uicgas.register.Comunications;
import uicgas.register.RegisterLogic;

public class AnnouncePump implements RemoteCommand
{
	private RegisterLogic register;
	public AnnouncePump(RegisterLogic register2, Comunications comunications)
	{
		this.register = register2;
	}
	public void executeRemoteCommand(RegisterLogic register2)
	{
		this.register = register2;
	}
	public int executeRemoteCommand(MessagePayload inData)
	{
		if(inData!=null)
		{
			register.AnnouncePump(inData);
			return 0;
		}
		else
		{
			return -1;
		}
	}
	@Override
	public void executeRemoteCommand()
	{
	}
	
}
